Exercise One

Extend this example so the direction changes on receiving a mouse click on the ball.

Exercise Two

Instead of random motion make the ball follow a geometric equation for example a circular path whose parameters are decided randomly every n steps.


Back to Scripting II main page